package com.easyapi.common.enums.datasource;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author javadadi
 */
@AllArgsConstructor
@Getter
public enum DataSourceStatus {
    /**
     * 数据源状态
     */
    DISABLE(1, "禁用"),
    NORMAL(0, "正常"),
    /**
     * 数据源使用状态状态
     */
    USING(1, "使用中"),
    NOT_USING(0, "未使用"),
    INIT(2, "初始化"),
    /**
     * 链接状态
     */
    LINK_FAIL(0, "连接丢失"),
    LINK_SUCCESS(1, "连接可用"),
    LINKING(2, "连接中");
    private final Integer code;
    private final String status;
}
